﻿using System.Collections.Generic;
using System.Threading.Tasks;
using cmdb.keede.common;
using cmdb.keede.entity;

namespace cmdb.keede.service
{
    public interface IApplicationInfoService
    {
        Task<BizResult<List<ApplicationInfo>>> GetApplicationInfoesAsync(int pageIndex, int pageSize);

        Task<BizResult<List<ApplicationInfo>>> GetApplicationInfoesAsync(int businessId);


        Task<BizResult<ApplicationInfo>> GetApplicationInfoAsync(int id);

        Task<BizResult<bool>> DeleteApplicationInfoAsync(int id);

        Task<BizResult<bool>> AddOrUpdateAppInfo(ApplicationInfo app);
    }
}